Carbon


GetCursor

Header: Quickdraw.h Carbon status: Supported

Loads a cursor resource into memory.

CursHandle GetCursor (
    SInt16 cursorID
);
cursorID

The resource ID for the cursor you want to display. You can supply one of the “Cursor ID Constants” to get a handle to one of the standard cursors.

function result

A handle to a Cursor structure for the cursor with the resource ID that you specify in the cursorID parameter. If the resource cannot be read into memory, GetCursor returns NULL.

DISCUSSION

To get a handle to a color cursor, use the GetCCursor function.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)